package com.own.business.exam.business.service.impl;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.own.business.exam.business.service.ExamRuleQuestionCountService;
import com.own.business.exam.entity.bo.ExamRuleQuestionCountBo;
import com.own.business.exam.entity.map.ExamRuleQuestionCountMapVo;
import com.own.business.exam.entity.po.ExamRuleQuestionCount;
import com.own.business.exam.entity.query.ExamRuleQuestionCountQuery;
import com.own.business.exam.entity.vo.ExamRuleQuestionCountVo;
import com.own.business.exam.mapper.ExamRuleQuestionCountMapper;
import com.own.component.common.base.service.impl.AbstractBaseBindOneService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * ExamRuleQuestionCountServiceImpl
 *
 * @author chenxueli
 * @date 2021/05/19 14:01:47
 */
@Slf4j
@Service
public class ExamRuleQuestionCountServiceImpl extends AbstractBaseBindOneService<
        ExamRuleQuestionCount,
        ExamRuleQuestionCountBo,
        ExamRuleQuestionCountVo,
        ExamRuleQuestionCountMapVo,
        ExamRuleQuestionCountQuery,
        ExamRuleQuestionCountMapper
        > implements ExamRuleQuestionCountService {

    /**
     * 获取fk的属性
     *
     * @return fk的属性
     */
    @Override
    public SFunction<ExamRuleQuestionCount, Long> getFkExtractor() {
        return ExamRuleQuestionCount::getFkRuleId;
    }

}
